
import React, { Component } from 'react'

/**
 * 绑定属性要注意 (this.xx  this.state.xx)
 *  class 要换成 className
 *  for   要换成 htmlFor
 *  sytle 以前  style="color: 'red'", 现在 style={{color: red, "fontSize": '40px'}}
 */

export default class Home extends Component {
  constructor(props){
    super(props)

    this.state = {
      style: {
        fontSize: '16px',
      }
    }
  }

  render() {
    return(
      <>
      <div className='App'>你好react</div>
      <br />

      <label htmlFor='name'>姓名</label>
      <input id='name' />
      </>
    )
  }
}